﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace TestProject1
{
    [TestClass]
    public class UnitTest1
    {
        [TestMethod]
        public void TestMethod1()
        {
            List<Sty> ls = new List<Sty>();
            ls.Add(null);

            foreach (var item in ls)
            {
                string dd = item.Sa;
                string d2 = item.Sb;
            }


        }

        public class Sty
        {
            public string Sa { get; set; }
            public string Sb { get; set; }
        }

        [TestMethod]
        public void TestMethod2()
        {
            object o = new { Style = "" };


            
        }

    }
}
